//
//  ALEmoticonKeyBoardPgeCell.swift
//  键盘-表情处理
//
//  Created by Miaoyang on 16/4/24.
//  Copyright © 2016年 Miaoyang. All rights reserved.
//

import UIKit

class ALEmoticonKeyBoardPgeCell: UICollectionViewCell {
    var indexPath: NSIndexPath? {
        didSet {
            debugLabel.text = "当前第 \(indexPath!.section) 组, 第 \(indexPath!.item) 页"
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        prepareUI()
    }
    
    private func prepareUI() {
        contentView.addSubview(debugLabel)
        debugLabel.frame = bounds
    }
    
    // MARK: - 懒加载
    private lazy var debugLabel: UILabel = {
        let label = UILabel()
        
        label.font = UIFont.systemFontOfSize(20)
        label.textColor = UIColor.redColor()
        
        return label
    }()

}
